<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>011-set的基本使用.html</title>
</head>
<body>
	
</body>
<script>
	// const s = new Set()
	// console.log(s)

	// const arr =[11,22,33]
	// const s = new Set(arr)
	// console.log(s)

	const s = new Set()
	s.add(1)
	s.add(2)
	s.add(3)
	s.add(4)
	console.log('s.delete(1)',s.delete(1))
	console.log('s.has(4)',s.has(4))
	s.clear()
	console.log(s)
	console.log(s.size)
</script>
</html>